package com.ericsson.enap.modules.ebmLog.entity.vgc;

import lombok.Data;

import java.util.Objects;

/**
 * @description: 5gc cause_code and sub_cause_code vo
 * @author: wangjingshi
 * @create: 2021-11-11 10:18
 */
@Data
public class VgcEbmCcScc {

    public Integer cause_code;
    public Integer sub_cause_code;
    private String cause_prot_type;
    private Long value;
    private Double ave;
    private Integer event_result;

    public Integer deregistration_trigger;
    public Integer dnn;
    public Integer ue_requested_dnn;
    public Integer n_handover_type;
    public Integer service_request_type;
    public Integer service_request_trigger;

    private Long dateTime;

    private Long startTime;
    private Long endTime;
    private Integer count;

    private String tac;
    private String nci;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VgcEbmCcScc t = (VgcEbmCcScc) o;
        return cause_code.equals(t.cause_code) && sub_cause_code.equals(t.sub_cause_code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cause_code, sub_cause_code);
    }

}
